﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudentSynchronization.Daemon
{
    /// <summary>
    /// 进程实体
    /// </summary>
    public class ProcessInfo
    {
        /// <summary>
        /// 内部ID
        /// </summary>
        public string kid { get; set; }

        /// <summary>
        /// 内部序号 从0开始 方便委托操作
        /// </summary>
        public int IndexNum { get; set; }

        /// <summary>
        /// 进程名称
        /// </summary>
        public string Name { get; set; }


        /// <summary>
        /// 进程路径
        /// </summary>
        public string Path { get; set; }

        public string MaxCPU { get; set; }


        public string MaxMemory { get; set; }


        /// <summary>
        /// PID
        /// </summary>
        public string PID { get; set; }


        /// <summary>
        /// 中文名称
        /// </summary>
        public string Desc { get; set; }

        /// <summary>
        /// 重启时间
        /// </summary>
        public string RestartTime { get; set; }

        /// <summary>
        /// 是否需要重启True需要重启 false不需要重启
        /// </summary>
        public bool IsRestart { get; set; }

        /// <summary>
        /// 启动时间 每次监测了可以更新此值
        /// </summary>
        public string StartTime { get; set; }

        /// <summary>
        /// 状态 true死的  False活的  首次加载 为 死的
        /// </summary>
        public bool IsDie { get; set; }

        /// <summary>
        /// 监测结果
        /// </summary>
        public string Info { get; set; }
    }
}
